#ifndef MYITEM_H
#define MYITEM_H
#include <QGraphicsPixmapItem>
#include <QGraphicsItem>
#include "score.h"
#include <QCursor>
class myitem : public QGraphicsPixmapItem//图元类
{
public:
    myitem();
    void setpic(QString path);
    void setmouse(bool m);
    bool ismouse();
    void setstart(bool m);
    bool isstart();

    void mousePressEvent(QGraphicsSceneMouseEvent *event);

    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

private:
    bool mouse;
    bool start;
};

#endif // MYITEM_H
